<template>
	<view class="page-container">
		<view class="song-item-container">
			<view class="song-item-box-top">
				<text class="song-item-name">
					四季予你四季予你四季予你四季予你四季予你
				</text>
				<text class="song-item-edit-time">
					编辑时间：2024.03.11 14:26
				</text>
			</view>
			<view class="song-item-box-bottom">
				<view class="song-item-other">
					<text class="song-item-other-auther">小李小李小李小李小李小李</text>
					<text class="song-item-other-melody">65 BPM #F 调</text>
				</view>
				<view class='song-item-option-container'>
					<view class="song-item-option song-item-option-edit" @click="jumpSongCreation">编辑</view>
					<view class="song-item-option song-item-option-del">删除</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script lang="ts" setup>
	import { onNavigationBarButtonTap } from '@dcloudio/uni-app'
	
	const jumpSongCreation=()=>{
		uni.navigateTo({
			url:"/pages/sheet-music-creation/index"
		})
	}
	
	onNavigationBarButtonTap(() => {
		uni.navigateTo({
			url: "/pages/sheet-music-creation/index"
		})
	})
	
		

</script>

<style lang="scss" scoped>
	.page-container {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;

		.song-item-container {
			width: 686rpx;
			height: 200rpx;
			background: #242424;
			border-radius: 16rpx;
			margin-top: 32rpx;
			box-sizing: border-box;
			padding: 32rpx 32rpx 28rpx 32rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;

			.song-item-box-top {
				display: flex;
				align-items: center;
				justify-content: space-between;

				.song-item-name {
					font-weight: 500;
					font-size: 32rpx;
					color: #FFFFFF;
					flex: 1;
					white-space: nowrap;
					text-overflow: ellipsis;
					overflow: hidden;
				}

				.song-item-edit-time {
					margin-left: 16rpx;
					font-size: 24rpx;
					color: #8A8A8A;
				}
			}

			.song-item-box-bottom {
				display: flex;
				align-items: flex-end;
				justify-content: space-between;

				.song-item-other {
					display: flex;
					flex-direction: column;
					width: 360rpx;
					.song-item-other-auther {
						
						font-size: 28rpx;
						line-height: 36rpx;
						font-weight: 400;
						color: #8A8A8A;
						white-space: nowrap;
						text-overflow: ellipsis;
						overflow: hidden;
					}
						
					.song-item-other-melody{
						margin-top: 10rpx;
						font-size: 28rpx;
						line-height: 36rpx;
						font-weight: 400;
						color: #8A8A8A;
						white-space: nowrap;
						text-overflow: ellipsis;
						overflow: hidden;
					}
				}

				.song-item-option-container {
					display: flex;
					align-items: center;
					justify-content: space-between;
					width: 240rpx;

					.song-item-option {
						width: 106rpx;
						height: 56rpx;
						border-radius: 27rpx;
						font-size: 26rpx;
						text-align: center;
						line-height: 56rpx;
					}

					.song-item-option-edit {
						border: 1rpx solid #25DADA;
						color: #25DADA;
					}

					.song-item-option-del {
						border: 1rpx solid #F45959;
						color: #F45959;
					}
				}

			}
		}
	}
</style>